<div class="navbar navbar-inverse navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container">
            <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="brand" href="http://test.ben/tools/index.php"><?php echo $title;?></a>
            <div class="nav-collapse collapse">
                <ul class="nav" menu="<?php echo $mainMenu;?>">
                    <li<?php if($mainMenu == 'site'):?> class="active"<?php endif;?>><a href="<?php echo C('site_admin');?>index.php?a=option" >网站设置</a></li>
                    <li<?php if($mainMenu == 'category'):?> class="active"<?php endif;?>><a href="<?php echo C('site_admin');?>index.php?a=category">分类管理</a></li>
                    <li<?php if($mainMenu == 'menu'):?> class="active"<?php endif;?>><a href="<?php echo C('site_admin');?>index.php?a=menu">菜单管理</a></li>
                    <li<?php if($mainMenu == 'components'):?> class="active"<?php endif;?>><a href="<?php echo C('site_admin');?>index.php?a=components">组件管理</a></li>
                </ul>
            </div><!--/.nav-collapse -->
        </div>
    </div>
</div>